<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page contentType="text/html; charset=UTF-8" %>
<%@ page pageEncoding="UTF-8" %>
<%@ taglib uri="http://www.opensymphony.com/sitemesh/decorator" prefix="decorator" %>
<%@ taglib uri="/struts-tags" prefix="s" %>
<html xmlns="http://www.w3.org/1999/xhtml" lang="UTF-8">
<head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
    <meta http-equiv="pragma" content="no-cache"/>
    <meta http-equiv="cache-control" content="no-cache"/>
    <meta http-equiv="expires" content="0"/>
    <link type="text/css" rel="stylesheet" href="${contextPath}/static/style/layout.css"/>
    <script type="text/javascript" src="${contextPath}/static/script/import.js"></script>
    <title>dswitch2-lowcost-adapter</title>
    <%
        String logoutUrl = request.getContextPath() + "/j_spring_security_logout";
    %>
    <decorator:head/>
    <script type="text/javascript">
        $(document).ready(function () {
            var map = new Map();
            map.put(0, "/requestlog/");
            var url = window.location.href;
            for (var key in map.keys()) {
                var values = map.get(key);
                var valueArray = values.split(";");
                for (var i = 0; i < valueArray.length; i++) {
                    if (url.indexOf(valueArray[i]) > 0) {
                        $(".nav li.tab").eq(key).addClass("tab_active");
                        return;
                    }
                }
            }
        });
    </script>
</head>
<body>
<div class="hd">
    <div class="logo">
        <img src="${contextPath}/static/images/logo.jpg" alt="dswitch-ihg-adapter" title="dswitch-ihg-adapter"/>
    </div>
    <ul class="nav">
        <li class="tab"><a href="${contextPath}/admin/transactionlog/list.dhtml" class="menu"><span>RequestLog</span></a>
        </li>
        <li class="tab"><a href="${contextPath}/admin/hotel/list.dhtml"
                           class="menu"><span>Hotel</span></a>
        </li>
        <li class="tab"><a href="${contextPath}/admin/reservation/list.dhtml"
                           class="menu"><span>Reservation</span></a>
        </li>
        <li class="tab"><a href="${contextPath}/admin/config/list.dhtml"
                           class="menu"><span>Config</span></a>
        </li>
        <li class="tab"><a href="${contextPath}/admin/cachemanager/list.dhtml"
                           class="menu"><span>Cache</span></a>
        </li>
        <li class="tab">
            <a href="<%= logoutUrl %>" class="menu"><span>Logout</span></a>
        </li>
    </ul>
</div>
<div class="bd">
    <decorator:body/>
</div>
<div class="ft">
    Copyright © 2002-2012 DerbySoft (Shanghai) Co. Ltd all rights reserved. BuildNumber:(${buildNumber})
</div>
</body>
</html>

